-- GENERATED SPELL FOR [Winter Rumbler] --


function spell0_34135(pUnit, Event) --@Cone of Cold,Self--
pUnit:FullCastSpellOnTarget(64645,pUnit)
pUnit:RegisterEvent('Sorts_34135', 8264, 1)
end

function spell1_34135(pUnit, Event) --@Cone of Cold,Self--
pUnit:FullCastSpellOnTarget(64655,pUnit)
pUnit:RegisterEvent('Sorts_34135', 8319, 1)
end

function spell2_34135(pUnit, Event) --@Snow Blindness,n/a--
pUnit:FullCastSpellOnTarget(64647,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34135', 2500, 1)
end

function spell3_34135(pUnit, Event) --@Snow Blindness,n/a--
pUnit:FullCastSpellOnTarget(64654,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34135', 3500, 1)
end

function Sorts_34135(pUnit, Event)
local choix_sorts_34135 = math.random(0, 3)
if choix_sorts_34135 == 0 then
pUnit:RegisterEvent('spell0_34135', 1, 1)
end
if choix_sorts_34135 == 1 then
pUnit:RegisterEvent('spell1_34135', 1, 1)
end
if choix_sorts_34135 == 2 then
pUnit:RegisterEvent('spell2_34135', 1, 1)
end
if choix_sorts_34135 == 3 then
pUnit:RegisterEvent('spell3_34135', 1, 1)
end
end

function mob34135_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34135', math.random(1500, 3000), 1)
end

function mob34135_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34135_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34135_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34135, 1, 'mob34135_Action')
RegisterUnitEvent(34135, 2, 'mob34135_Leave')
RegisterUnitEvent(34135, 3, 'mob34135_Kill')
RegisterUnitEvent(34135, 4, 'mob34135_Die')
